

function add_edit_elements () {
	
	setAjaxParameter("area", area);
	setAjaxParameter("section", section);
	
	add_element ("section_header_instructions","/modules/section_header/admin/templates/instructions.php");
	add_element ("section_header_image_upload", "/modules/section_header/admin/templates/image_upload.php");
    
}

function add_element (id, url) {
	var existing_div = document.getElementById(id);
	if (existing_div == null) {
		var div = document.createElement("DIV")
		div.innerHTML = getFile(url);
		div.id = id;
		div.style.display = "block"
		document.body.appendChild(div);
	} else {
		if (existing_div.style.display == "block") existing_div.style.display = "none";
		else {
			existing_div.innerHTML = getFile(url);
			existing_div.style.display = "block";
		}
	}
}




var section_header_loaded = 1;